﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AssemblyList.aspx.cs"
    Inherits="SalesManagement.Modules.Warehouse.AssemblyList" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Danh sách lắp đặt - tháo dở</title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:Viewport ID="Viewport1" runat="server" Layout="RowLayout">
        <Items>
            <ext:Toolbar ID="tbMain" runat="server">
                <Items>
                    <ext:ToolbarSpacer />
                    <ext:Button ID="btnAdd" runat="server" Text="Thêm mới" Icon="FolderAdd">
                        <DirectEvents>
                            <Click OnEvent="btnAdd_Click" />
                        </DirectEvents>
                    </ext:Button>
                    <ext:Button ID="btnEdit" runat="server" Text="Hiệu chỉnh" Icon="FolderEdit">
                        <DirectEvents>
                            <Click OnEvent="btnEdit_Click" />
                        </DirectEvents>
                    </ext:Button>
                    <ext:Button ID="btnDelete" runat="server" Text="Xóa" Icon="FolderDelete">
                        <DirectEvents>
                            <Click OnEvent="btnDelete_Click" />
                        </DirectEvents>
                    </ext:Button>
                </Items>
            </ext:Toolbar>
            <ext:Panel ID="Panel0" runat="server" Frame="true" Height="100" Layout="ColumnLayout"
                Border="false">
                <Defaults>
                    <ext:Parameter Name="Anchor" Value="99%">
                    </ext:Parameter>
                </Defaults>
                <Items>
                    <ext:Panel ID="Panel1" runat="server" ColumnWidth="0.5" Layout="FormLayout" LabelWidth="100"
                        Border="true">
                        <Defaults>
                            <ext:Parameter Name="Anchor" Value="99%">
                            </ext:Parameter>
                        </Defaults>
                        <Items>
                            <ext:DateField ID="dfDateFrom" runat="server" FieldLabel="Từ ngày" />
                            <ext:TextField runat="server" ID="txtVoucherNo" FieldLabel="Số phiếu">
                            </ext:TextField>
                            <ext:ComboBox ID="ComboBox5" runat="server" FieldLabel="Hạn thanh toán" Editable="false"
                                DataIndex="Title" />
                        </Items>
                    </ext:Panel>
                    <ext:Panel ID="Panel2" runat="server" ColumnWidth="0.4" Layout="FormLayout" LabelWidth="70"
                        Border="false">
                        <Defaults>
                            <ext:Parameter Name="Anchor" Value="99%">
                            </ext:Parameter>
                        </Defaults>
                        <Items>
                            <ext:DateField ID="dfDateTo" runat="server" FieldLabel="Đến ngày" />
                            <ext:ComboBox ID="cbCustomer" runat="server" FieldLabel="Khách hàng" Editable="false"
                                DataIndex="Title" />
                            <ext:ComboBox ID="cbBondNo" runat="server" FieldLabel="Nhân viên" Editable="false"
                                DataIndex="Title" />
                        </Items>
                    </ext:Panel>
                    <ext:Panel ID="pnlPackCenter" runat="server" Layout="VBoxLayout" ColumnWidth="0.1"
                        Border="true">
                        <Defaults>
                            <ext:Parameter Name="margins" Value="0 0 5 0" Mode="Value" />
                        </Defaults>
                        <LayoutConfig>
                            <ext:VBoxLayoutConfig Padding="5" Align="Center" Pack="Center" />
                        </LayoutConfig>
                        <Items>
                            <ext:Button ID="btSearch" runat="server" Text="Tìm kiếm" Icon="Magnifier" FormBind="true"
                                Width="60" Height="30">
                                <Listeners>
                                    <Click Handler="SearchDocument()" />
                                </Listeners>
                            </ext:Button>
                        </Items>
                    </ext:Panel>
                </Items>
            </ext:Panel>
            <ext:GridPanel ID="GridPanel2" runat="server" AutoExpandColumn="objEmplyee" Border="false" RowHeight="1">
                <Store>
                    <ext:Store ID="Store2" runat="server">
                        <Reader>
                            <ext:JsonReader IDProperty="objID">
                                <Fields>
                                    <ext:RecordField Name="objID" />
                                    <ext:RecordField Name="objdateCreate" />
                                    <ext:RecordField Name="objtotalValue" />
                                    <ext:RecordField Name="objEmplyee" />
                                    <ext:RecordField Name="objimwarehouse" />
                                    <ext:RecordField Name="objexwarehouse" />
                                </Fields>
                            </ext:JsonReader>
                        </Reader>
                    </ext:Store>
                </Store>
                <ColumnModel ID="ColumnModel2" runat="server">
                    <Columns>
                        <ext:Column ColumnID="objemployeeID" DataIndex="objemployeeID" Header="Số phiếu" />
                        <ext:Column DataIndex="objdateCreate" Header="Ngày tạo" />
                        <ext:Column DataIndex="objtotalValue" Header="Tổng giá trị" />
                        <ext:Column DataIndex="objEmplyee" Header="Nhân viên" />
                        <ext:Column DataIndex="objimwarehouse" Header="Kho nhập thành phẩm" />
                        <ext:Column DataIndex="objexwarehouse" Header="Kho xuất nguyên liệu" />
                    </Columns>
                </ColumnModel>
                <BottomBar>
                    <ext:PagingToolbar ID="PagingToolbar2" runat="server" />
                </BottomBar>
                <LoadMask ShowMask="true" />
            </ext:GridPanel>
            <ext:GridPanel ID="GridPanel1" runat="server" AutoExpandColumn="pro_Name" Border="false" Height="170">
                <Store>
                    <ext:Store ID="Store1" runat="server">
                        <Reader>
                            <ext:JsonReader IDProperty="pro_ID">
                                <Fields>
                                    <ext:RecordField Name="pro_ID" />
                                    <ext:RecordField Name="pro_Name" />
                                    <ext:RecordField Name="pro_unit" />
                                    <ext:RecordField Name="pro_amount" />
                                    <ext:RecordField Name="pro_price" />
                                </Fields>
                            </ext:JsonReader>
                        </Reader>
                    </ext:Store>
                </Store>
                <ColumnModel ID="ColumnModel1" runat="server">
                    <Columns>
                        <ext:Column ColumnID="pro_ID" DataIndex="pro_ID" Header="Mã thành phẩm" />
                        <ext:Column DataIndex="pro_Name" Header="Tên thành phẩm" />
                        <ext:Column DataIndex="pro_unit" Header="Đơn vị tính" />
                        <ext:Column DataIndex="pro_amount" Header="Số lượng" />
                        <ext:Column DataIndex="pro_price" Header="Chi phí" />
                    </Columns>
                </ColumnModel>
                <BottomBar>
                    <ext:PagingToolbar ID="PagingToolbar1" runat="server" />
                </BottomBar>
                <LoadMask ShowMask="true" />
            </ext:GridPanel>
        </Items>
    </ext:Viewport>
    </form>
</body>
</html>
